<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018\7\18 0018
 * Time: 14:05
 */
namespace app\index\controller;

use app\index\controller\BaseController;
use think\Cache;

class Index extends  BaseController
{
    public function index(){
       return $this-> fetch('frame');
    }
    public function left(){
        return $this -> fetch('left');
    }
    public function top(){
        return $this-> fetch('top');
    }	
		public function logout(){
       session('user_name',null); // 清空当前的session 
			 session('id',null);
			 return 1;
    }
		public function clears(){
			Cache::clear();
			return 1;
		}
}